package com.ruoyi.jhc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jhc.mapper.JhcTcwfMapper;
import com.ruoyi.jhc.domain.JhcTcwf;
import com.ruoyi.jhc.service.IJhcTcwfService;

/**
 * 特材外发录入Service业务层处理
 * 
 * @author lgx
 * @date 2022-11-22
 */
@Service
public class JhcTcwfServiceImpl implements IJhcTcwfService 
{
    @Autowired
    private JhcTcwfMapper jhcTcwfMapper;

    /**
     * 查询特材外发录入
     * 
     * @param cDate 特材外发录入主键
     * @return 特材外发录入
     */
    @Override
    public JhcTcwf selectJhcTcwfByCDate(String cDate)
    {
        return jhcTcwfMapper.selectJhcTcwfByCDate(cDate);
    }

    /**
     * 查询特材外发录入列表
     * 
     * @param jhcTcwf 特材外发录入
     * @return 特材外发录入
     */
    @Override
    public List<JhcTcwf> selectJhcTcwfList(JhcTcwf jhcTcwf)
    {
        return jhcTcwfMapper.selectJhcTcwfList(jhcTcwf);
    }

    /**
     * 新增特材外发录入
     * 
     * @param jhcTcwf 特材外发录入
     * @return 结果
     */
    @Override
    public int insertJhcTcwf(JhcTcwf jhcTcwf)
    {
        return jhcTcwfMapper.insertJhcTcwf(jhcTcwf);
    }

    /**
     * 修改特材外发录入
     * 
     * @param jhcTcwf 特材外发录入
     * @return 结果
     */
    @Override
    public int updateJhcTcwf(JhcTcwf jhcTcwf)
    {
        return jhcTcwfMapper.updateJhcTcwf(jhcTcwf);
    }

    /**
     * 批量删除特材外发录入
     * 
     * @param cDates 需要删除的特材外发录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcTcwfByCDates(String[] cDates)
    {
        return jhcTcwfMapper.deleteJhcTcwfByCDates(cDates);
    }

    /**
     * 删除特材外发录入信息
     * 
     * @param cDate 特材外发录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcTcwfByCDate(String cDate)
    {
        return jhcTcwfMapper.deleteJhcTcwfByCDate(cDate);
    }
}
